package com.yunchao.test.domain.repository

import com.yunchao.test.domain.model.MaintenanceInfoModel
import java.io.File

internal interface MaintenanceInfoRepository {

    //获取所有维保的Excel文件
    suspend fun getMaintenanceFileList(): Result<List<File>>

    //根据文件名获取维保信息列表并添加到数据库中
    suspend fun addMaintenanceInfoList(fileName: String): Result<Boolean>

    //根据锁号查询具体的维保信息
    suspend fun getMaintenanceInfoByLockNo(lockNo: String): Result<MaintenanceInfoModel?>


    suspend fun writeDataToExcel(models: List<MaintenanceInfoModel>): Result<Boolean>
}